home *** CD-ROM | disk | FTP | other *** search
/ Aminet 38 / Aminet 38 (2000)(Schatztruhe)[!][Aug 2000].iso / Aminet / dev / c / CLib-SDI.lha / CLib-SDI / include / inline / example.h < prev   
Encoding:
C/C++ Source or Header  |  2000-06-25  |  750 b   |  26 lines

  1. #ifndef _INLINE_EXAMPLE_H
  2. #define _INLINE_EXAMPLE_H
  3.  
  4. #ifndef __INLINE_MACROS_H
  5. #include <inline/macros.h>
  6. #endif
  7.  
  8. #ifndef EXAMPLE_BASE_NAME
  9. #define EXAMPLE_BASE_NAME ExampleBase
  10. #endif
  11.  
  12. #define ex_TestRequest(title, body, gadgets) \
  13.     LP3(0x1E, LONG, ex_TestRequest, STRPTR, title, a0, STRPTR, body, a1, STRPTR, gadgets, a2, \
  14.     , EXAMPLE_BASE_NAME)
  15.  
  16. #define ex_TestRequest2A(title, body, gadgets, args) \
  17.     LP4(0x24, LONG, ex_TestRequest2A, STRPTR, title, a0, STRPTR, body, a1, STRPTR, gadgets, a2, APTR, args, a3, \
  18.     , EXAMPLE_BASE_NAME)
  19.  
  20. #ifndef NO_INLINE_STDARG
  21. #define ex_TestRequest2(title, body, gadgets, tags...) \
  22.     ({ULONG _tags[] = {tags}; ex_TestRequest2A((title), (body), (gadgets), (APTR) _tags);})
  23. #endif
  24.  
  25. #endif /*  _INLINE_EXAMPLE_H  */
  26.